package com.pxl.springbootinit.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pxl.springbootinit.model.dto.user.UserFrom;
import com.pxl.springbootinit.model.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pxl.springbootinit.model.vo.LoginUserVO;
import com.pxl.springbootinit.model.vo.UserVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author MADAO
* @description 针对表【user】的数据库操作Service
* @createDate 2024-12-20 10:02:04
*/
public interface UserService extends IService<User> {

    User getLoginUser(HttpServletRequest request);

    long userRegister(String userAccount, String userPassword, String checkPassword);

    LoginUserVO userLogin(String userAccount, String userPassword, HttpServletRequest request);

    boolean userLogout(HttpServletRequest request);

    LoginUserVO getLoginUserVO(User user);

    Page<UserVO> getUserList(UserFrom userFrom);

    UserVO getUserById(Long id);

    boolean updateUser(UserFrom userFrom);

    boolean deleteUser(Long id);

    public UserVO getUserVO(User user);

    List<UserVO> getUserListByIdCard(UserFrom userFrom);


    Long getTodayActiveCount();

    void resetUserActiveInfo();

    Page<UserVO> getUserExamine(UserFrom userFrom);
}
